<template>
  <!-- 分类搜索 -->
  <div class="headNav">
    <van-search
      v-model="value"
      placeholder="家电返场同价11.11"
      class="inputBox"
    >
      <template #left-icon>
        <div>
          <van-icon name="search" size="22px" color="#999" />
        </div>
      </template>
    </van-search>
  </div>
</template>

<script>
export default {
  data() {
    return {
      value: "",
    };
  },
};
</script>

<style lang="scss" scoped>
.headNav {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 55px;
  border-bottom: 1px solid #dcdcdc;
  background-color: #fff;
  z-index: 50;

  .inputBox {
    display: flex;
    align-items: center;
    width: 305px;
    height: 33px;
    // padding-left: 22px;
    box-sizing: border-box;
    background-color: #f7f7f7;
    border-radius: 25px;

    input {
      background-color: #f7f7f7;
    }
  }
}
</style>
